package com.xyht.medicine_management_system.modules.stock.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 药品库存
 * </p>
 *
 * @author XYHT
 * @since 2023-11-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mms_medicine_stock")
@ApiModel(value="MmsMedicineStock对象", description="药品库存")
public class MmsMedicineStock implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "库存编码")
    private String id;

    @ApiModelProperty(value = "药品id")
    private String medicineId;

    @ApiModelProperty(value = "库存量")
    private Integer stockQuantity;

    @ApiModelProperty(value = "单位")
    private String medicineUnit;

    @ApiModelProperty(value = "库存状态(1:正常 2:缺货)")
    private Integer stockStatus;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "厂家")
    private String manufacturer;

    @ApiModelProperty(value = "检验报告")
    private String inspectionReport;

    @ApiModelProperty(value = "首营资料")
    private String firstCampInformation;

    @ApiModelProperty(value = "创建人")
    private String userId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除：0：未删除 1：已删除")
    @TableLogic
    private Integer isDeleted;

    @Version
    @TableField("version")
    private Integer version;


}
